<template>
  <div id="app">
      <router-view id="topStyle" name="top"></router-view>
      <router-view id="slidebarStyle" name="slidebar"></router-view>
      <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'app',
  data () {
    return {
      msg: 'Welcome to Your Vue.js App'
    }
  },
   methods: {
      login(){
                console.log(123);
                this.$router.push({path: 'login'})
            },
   }
}
</script>

<style>
#app {
  text-align: center;
  color: #2c3e50;
  margin:80px;
}


#topStyle {
    height: 60px;
    background: #20a0ff;
    min-width: 100%;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
}

#slidebarStyle {
    position: fixed;
    width: 180px;
    top: 60px;
    left: 0;
    height: 100%;
    border: 0;
    border-right: 3px solid #ececec;
    background: #f7f7f9;
}

</style>
